package com.bh.fee.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bh.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 费用类型对象 jc_fee_type
 *
 * @author slx
 * @date 2023-08-19
 */
@TableName("jc_fee_type")
@ApiModel(value = "费用类型对象", description = "费用类型对象")
@Data
public class JcFeeType {
    

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    private String code;


    private String createName;

    /**
     * 创建时间
     */
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     *
     */
    private String description;

    private String modifyName;

    private Date modifyTime;

    private String name;

    private Integer status;

    /**
     * 收入成本表示
     */
    @ApiModelProperty("收入成本表示")
    @Excel(name = "收入成本表示")
    private Integer cost;

    /**
     * 默认生成
     */
    @ApiModelProperty("默认生成")
    @Excel(name = "默认生成")
    private Integer defaultCreate;

    /**
     * 是否加入总计
     */
    @ApiModelProperty("是否加入总计")
    @Excel(name = "是否加入总计")
    private Integer isCount;

    /**
     * 默认生成机构
     */
    @ApiModelProperty("默认生成机构")
    @Excel(name = "默认生成机构")
    private Long orgId;

    /**
     * 默认生成机构
     */
    @ApiModelProperty("默认生成机构")
    @Excel(name = "默认生成机构")
    private String orgName;

    /**
     * 运单
     */
    @ApiModelProperty("运单")
    @Excel(name = "运单")
    private Integer shipmentModule;

    /**
     * 订单
     */
    @ApiModelProperty("订单")
    @Excel(name = "订单")
    private Integer transportorder;

    /**
     * 派车单
     */
    @ApiModelProperty("派车单")
    @Excel(name = "派车单")
    private Integer dispatch;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("createName", getCreateName())
                .append("createTime", getCreateTime())
                .append("description", getDescription())

                .append("modifyName", getModifyName())
                .append("modifyTime", getModifyTime())
                .append("name", getName())
                .append("status", getStatus())
                .append("cost", getCost())
                .append("defaultCreate", getDefaultCreate())
                .append("isCount", getIsCount())
                .append("orgId", getOrgId())
                .append("orgName", getOrgName())
                .append("shipmentModule", getShipmentModule())
                .append("transportorder", getTransportorder())
                .toString();
    }
}
